package com.smarttiger.zero.admin.dao;

import com.smarttiger.zero.admin.entity.LogicModel;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface LogicDao extends BaseDao<LogicModel> {

    @Query(value = "select l from InterfaceLogicModel i " +
            "inner join LogicModel l on i.logicId = l.id  " +
            "where i.interfaceId = ?1 order by i.sort ")
    public List<LogicModel> findLogicModelByInterfaceId(String id);
}
